package com.example.postman;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ruigu
 */
@RestController
@SpringBootApplication
public class PostmanApplication {

    @GetMapping("/postman")
    @ResponseBody
    public String postman(String number) {
        System.out.println(number);
        return number;
    }

    public static void main(String[] args) {
        SpringApplication.run(PostmanApplication.class, args);
    }

}
